package com.woniuxy.dao;

import com.woniuxy.pojo.Customer;

import java.util.List;

public interface CustomerMapper {
    //根据顾客ID查询顾客
    public Customer selectByid(String custNo);
    /**
     * 通过客户姓名查询客户
     */
    public Customer selectCustomerByName(String custName);
    /**
     * 查询所有客户
     */
    public List<Customer> selectAllCustomer();

    /**
     * 查找所有的客户
     * @return
     */
    public List<Customer> selectAllCustomers();
    //根据条件查找客户
    public List<Customer> selectByCondition(Customer customer);

    /**
     * 模糊查询用户
     * @param customer
     * @return
     */
    public List<Customer> selectCustomersByConditon(Customer customer);

    /**
     * 增加客户信息
     * @param customer
     */
    public int saveCustomer(Customer customer);

    /**
     * 删除用户
     * @param custNo
     */
    public void deleteCustomerByCustNo(String custNo);

    /**
     * 更新用户
     * @param customer
     */
    public void updateCustomer(Customer customer);

    /**
     * 通过顾客编号
     * @param custNo
     * @return
     */
    public Customer selectCustomerByCustNo(String custNo);

    //改变FLAG状态
    public void updateCustFlag(String orderCustNo);

}
